const fs = require("fs");

let config = JSON.parse(fs.readFileSync("config.json", "utf8"));
let email_user = config.email.user;
let email_pass = config.email.pass;
let mysql_host = config.mysql.host;
let mysql_port = config.mysql.port;
// 不使用这里的redis配置信息，使用了还会保 RedisCli connection error 哈哈哈
let redis_host = config.redis.host;
let redis_port = config.redis.port;
let redis_passwd = config.redis.passwd;
let code_prefix = "code_";

module.exports = {
  email_pass,
  email_user,
  mysql_host,
  mysql_port,
  redis_host,
  redis_port,
  redis_passwd,
  code_prefix,
};
